#ifndef __USER_H__
#define __USER_H__

#include "userStatus.hpp"
#include "TcpConnection.h"
#include "camera.hpp"
#include <string>
#include <vector>

using std::string;

namespace rocket 
{

class user
{
public:
    user(string name,string salt,wd::TcpConnectionPtr channel,userStatus status,string encrypted="\0") 
    :_name(name)
    ,_salt(salt)
    ,_channel(channel)
    ,_status(status)
    ,_encrypted(encrypted)
    ,_cameras()
    {

    }
    ~user() {}

public:
    string _name;
    string _salt;
    wd::TcpConnectionPtr _channel;
    userStatus _status;
    string _encrypted;
    std::vector<camera> _cameras;

};

}

#endif // __USER_H__

